<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>在线预览</title>
</head>
<script src="js/jquery/jquery-1.8.2.js"></script>
<body>
正在处理中，请稍候.....
<input type="hidden" id="abc" value="{$f}"/>
{literal}
<script>
var gf = $("#abc").val();
$(function(){
  checkFile();
  setInterval("checkFile()",2000);
});
function checkFile()
{
	$.post("?act=main&op=checkFileExist",{f:gf},function(d){
	    if(d.indexOf("1")!=-1)
		{
			window.location.href="pdf/web/viewer.php?file=../../"+gf;
		}
	});
}
</script>
{/literal}
</body>
</html>
